point Derived Type

type, public :: point

Defines a point in 3D, Cartesian space.


Contents


Components

Type Visibility Attributes Name Initial
real(kind=real64), public :: x

The x-coordinate.

real(kind=real64), public :: y

The y-coordinate.

real(kind=real64), public :: z

The z-coordinate.


Constructor

public interface point

  • private pure function pt_init(x, y, z) result(rst)

    Constructs a new [[point]].

    Arguments

    Type IntentOptional Attributes Name
    real(kind=real64), intent(in) :: x

    The x-coordinate.

    real(kind=real64), intent(in) :: y

    The y-coordinate.

    real(kind=real64), intent(in) :: z

    The z-coordinate.

    Return Value type(point)

    The new [[point]].